package org.example;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ClassTest {
    public  static  void main(String[] args){
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        ClassRoom classroom = (ClassRoom) context.getBean("classroom");
        System.out.println(classroom);
        context.close();
    }
}
